package com.cirkana.viewer.route.gpx;

public class Metadata {

	private String name;
	private String desc;
	private String author;
	private String preview;

	protected Metadata() {
	}

	protected Metadata(String name, String desc, String author, String preview) {
		super();
		this.name = name;
		this.desc = desc;
		this.author = author;
		this.setPreview(preview);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public void setPreview(String preview) {
		this.preview = preview;
	}

	public String getPreview() {
		return preview;
	}

	public static Metadata getMetadata() {
		return new Metadata();
	}

	public static Metadata getMetadata(String name, String desc, String author, String preview) {
		return new Metadata(name, desc, author, preview);
	}

	@Override
	public String toString() {
		StringBuilder s = new StringBuilder();
		s.append("metadata={name=" + name);
		s.append(",desc=" + desc);
		s.append(",author=" + author + "}");
		return s.toString();
	}

}
